﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JCSoft.Collect.Model;
using FluentNHibernate.Mapping;

namespace JCSoft.Collect.Data.Mappings
{
    public class UserMap : ClassMap<User>
    {
        public UserMap()
        {
            Id(u => u.UserID).GeneratedBy.Identity();
            Map(u => u.UserName);
            Map(u => u.Password);
            Map(u => u.Email);
            Map(u => u.AddTime).Generated.Always();
        }
    }
}
